<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.box{
				width: 300px;
				height: 300px;
				margin: 200px auto;
				transition: 2s;
			}
			
			.box>div{
				width: 100px;
				height: 100px;
				background: red;
				float: left;
				transition: 2s;
			}
			
			.box:hover{
				transform: rotate(360deg);
			}
			
			.box:hover>div:nth-of-type(1){
				transform: translate(-100px,-100px) scale(1.4);
				opacity: 0;
			}
			.box:hover>div:nth-of-type(2){
				transform: translate(0px,-100px) scale(1.4);
				opacity: 0;
			}
			.box:hover>div:nth-of-type(3){
				transform: translate(100px,-100px) scale(1.4);
				opacity: 0;
			}
			
			.box:hover>div:nth-of-type(4){
				transform: translate(-100px,0px) scale(1.4);
				opacity: 0;
			}
			.box:hover>div:nth-of-type(5){
				transform: translate(0px,0px) scale(1.4);
				opacity: 0;
			}
			.box:hover>div:nth-of-type(6){
				transform: translate(100px,0px) scale(1.4);
				opacity: 0;
			}
			
			.box:hover>div:nth-of-type(7){
				transform: translate(-100px,100px) scale(1.4);
				opacity: 0;
			}
			.box:hover>div:nth-of-type(8){
				transform: translate(0px,100px) scale(1.4);
				opacity: 0;
			}
			.box:hover>div:nth-of-type(9){
				transform: translate(100px,100px) scale(1.4);
				opacity: 0;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
		</div>
	</body>
</html>
